Integrand size = 19, antiderivative size = 130 \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {2 x^{1+m} \left (1+e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{3/2} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},-\frac {2 i+2 i m-3 b n}{4 b n},-\frac {2 i+2 i m-7 b n}{4 b n},-e^{2 i a} \left (c x^n\right )^{2 i b}\right ) \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )}{2+2 m+3 i b n} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 126, normalized size of antiderivative = 0.97, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {4605, 4603, 371} \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {2 x^{m+1} \left (1+e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{3/2} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},\frac {1}{4} \left (3-\frac {2 i (m+1)}{b n}\right ),-\frac {2 i m-7 b n+2 i}{4 b n},-e^{2 i a} \left (c x^n\right )^{2 i b}\right ) \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )}{3 i b n+2 m+2} \]
[In]
[Out]
Rule 371
Rule 4603
Rule 4605
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int x^{-1+\frac {1+m}{n}} \sec ^{\frac {3}{2}}(a+b \log (x)) \, dx,x,c x^n\right )}{n} \\ & = \frac {\left (x^{1+m} \left (c x^n\right )^{-\frac {3 i b}{2}-\frac {1+m}{n}} \left (1+e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{3/2} \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )\right ) \text {Subst}\left (\int \frac {x^{-1+\frac {3 i b}{2}+\frac {1+m}{n}}}{\left (1+e^{2 i a} x^{2 i b}\right )^{3/2}} \, dx,x,c x^n\right )}{n} \\ & = \frac {2 x^{1+m} \left (1+e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{3/2} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},\frac {1}{4} \left (3-\frac {2 i (1+m)}{b n}\right ),-\frac {2 i+2 i m-7 b n}{4 b n},-e^{2 i a} \left (c x^n\right )^{2 i b}\right ) \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )}{2+2 m+3 i b n} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(470\) vs. \(2(130)=260\).
Time = 7.93 (sec) , antiderivative size = 470, normalized size of antiderivative = 3.62 \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {\sqrt {2} x^{1+m-i b n} \left (-\left (\left (4+8 m+4 m^2+b^2 n^2\right ) x^{2 i b n} \sqrt {\frac {e^{i a} \left (c x^n\right )^{i b}}{1+e^{2 i a} \left (c x^n\right )^{2 i b}}} \sqrt {1+e^{2 i a} \left (c x^n\right )^{2 i b}} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {i \left (1+m+\frac {3 i b n}{2}\right )}{2 b n},-\frac {2 i+2 i m-7 b n}{4 b n},-e^{2 i a} \left (c x^n\right )^{2 i b}\right )\right )+(2+2 m+3 i b n) \left ((2+2 m+i b n) \sqrt {\frac {e^{i a} \left (c x^n\right )^{i b}}{1+e^{2 i a} \left (c x^n\right )^{2 i b}}} \sqrt {1+e^{2 i a} \left (c x^n\right )^{2 i b}} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {2 i+2 i m+b n}{4 b n},-\frac {2 i+2 i m-3 b n}{4 b n},-e^{2 i a} \left (c x^n\right )^{2 i b}\right )-i \sqrt {2} x^{i b n} \sqrt {\sec \left (a+b \log \left (c x^n\right )\right )} (b n \cos (b n \log (x))-2 (1+m) \sin (b n \log (x)))\right )\right )}{b n (-2 i-2 i m+3 b n) \left (-2 (1+m) \cos \left (a-b n \log (x)+b \log \left (c x^n\right )\right )+b n \sin \left (a-b n \log (x)+b \log \left (c x^n\right )\right )\right )} \]
[In]
[Out]
\[\int x^{m} {\sec \left (a +b \ln \left (c \,x^{n}\right )\right )}^{\frac {3}{2}}d x\]
[In]
[Out]
Exception generated. \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\int { x^{m} \sec \left (b \log \left (c x^{n}\right ) + a\right )^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int x^m \sec ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right ) \, dx=\int x^m\,{\left (\frac {1}{\cos \left (a+b\,\ln \left (c\,x^n\right )\right )}\right )}^{3/2} \,d x \]
[In]
[Out]